package com.jsbs.iam.component.constant;

public enum ResultEnum {
    SUC(0,"成功"),
    ERR(9,"失败"),
    /*会话相关 1xx */
    SESSION_EXPIRE(100, "会话过期，请重新登录"),
    DO_THING(101, "doNothing"),
    SERVER_ERROR(9999, "服务器繁忙，请稍后再试!"),
    REFRESH_LIST(201, "刷新列表"),
    ;


    private int code;
    private String msg;

    private ResultEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
